package casa.depesos.app.com.http.data;

import com.google.gson.annotations.Expose;
import com.google.gson.annotations.SerializedName;

public class TakeFail {
    @SerializedName("certTime")
    @Expose
    public String authTime;

    @SerializedName("termTime")
    @Expose
    public String endTime;

    @SerializedName("islangtimnf2W")
    @Expose
    public String countDownTime;

    public long getCountDownTime() {
        try {
            long tmp = Long.parseLong(countDownTime);
            if (tmp <= 0) {
                return 0;
            }
            return Long.parseLong(countDownTime) / 1000;
        } catch (Throwable e) {
            return 0;
        }
    }
}
